package com.gao.orange;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName MyNacosApplication.java
 * @Description <p>启动类</p>
 * @createTime 2021-03-08 11:40:00
 */

@Slf4j
//启用 nacos的注册客户端
@EnableDiscoveryClient
@SpringBootApplication
public class MyNacosApplication implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(MyNacosApplication.class, args);
    }

    @Override
    public void run(String... args) {

        log.info("== depend-nacos-project 服务启动成功！==");
    }
}
